package mx.com.crowdgine.assetloader;
import mx.com.crowdgine.util.math.*;

public class Vertex {
	
	private Vector3f vertexData;
	
	public Vertex(Vector3f vec){
		vertexData=vec;
	}
	
	public Vertex(float x, float y, float z){
		vertexData = new Vector3f(x,y,z);
	}
	
	public Vertex(float [] array){
		vertexData=new Vector3f(array);
	}
	
	public String toString(){
		return vertexData.toString();
	}

	public Vector3f getVertexData() {
		return vertexData;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null)
			return false;
		
		if(obj instanceof Vertex) {
			Vertex other = (Vertex) obj;
			return this.vertexData.equals(other.vertexData);
		} else  {
			return false;
		}
		
	}

}
